import request from "@/utils/request"

export function queryPageCouponBaseByPC(data) {
  return request({
    url: "/CCouponBase/queryPageCouponBaseByPC",
    method: "POST",
    data: data
  })
}

export function queryPageCoupon(data) {
  return request({
    url: "/CCoupon/queryPage",
    method: "POST",
    data: data
  })
}

export function queryUsedCouponPage(data) {
  return request({
    url: "/CCoupon/queryUsedCouponPage",
    method: "POST",
    data: data
  })
}

export function insertCoupon(data) {
  return request({
    url: "/CCoupon/insertCoupon",
    method: "POST",
    data: data
  })
}

export function insertCouponBase(data) {
  return request({
    url: "/CCouponBase/insertCouponBase",
    method: "POST",
    data: data
  })
}

export function writeOff(data) {
  return request({
    url: "/CCoupon/writeOff",
    method: "POST",
    data: data
  })
}
